const path = require('path')
//路径转换
const resolvePath = (pathstr) => path.resolve(__dirname, pathstr);

module.exports = {
  mode: 'production',
  entry: './test.js',
  output: {
    filename: 'js/[name].[chunkhash:8].js',
    path: resolvePath('../dist'),
    publicPath: '/'
  },
}